package com.ht.modules.system.service;

import com.ht.modules.system.entity.SysAnnouncement;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 系统通告表
 */
public interface ISysAnnouncementService extends IService<SysAnnouncement> {

    void saveAnnouncement(SysAnnouncement sysAnnouncement);

    boolean upDateAnnouncement(SysAnnouncement sysAnnouncement);

    void saveSysAnnouncement(String title, String msgContent);

    Page<SysAnnouncement> querySysCementPageByUserId(Page<SysAnnouncement> page, String userId, String msgCategory);

    /**
     * 给指定用户推送消息
     *
     * @param userIds 消息接收人id
     * @param title   标题
     * @param msg     内容
     */
    void sendMiddlePrioritySysMsg(String userIds, String title, String msg);

}
